Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL3 preparation (event_sdl.c). #420

Merged
merged 4 commits into from
Jan 21, 2024
Merged

SDL3 preparation (event_sdl.c). #420

merged 4 commits into from
Jan 21, 2024

Conversation

AliceLR
Copy link
Owner

@AliceLR AliceLR commented Jan 21, 2024

  • Most references to "gamecontrollers" in code and config settings are now "gamepad", which is half the length, less annoying to type and look at, and also matches SDL3's current renaming of their API. The old "gamecontroller" config settings still work, but config.txt now only contains references to "gamepad".
  • The SDL event unicode fallback behavior now only triggers when text events are disabled in SDL2+. This should allow text input events if the onscreen keyboard is active in the Android port, but still allow the unicode fallback to work when it's hidden. Text input is now disabled whenever a platform supports an onscreen keyboard instead of being excluded by Android specifically.
  • SDL joystick GUIDs are now derived from the SDL_Joystick * rather than the SDL device index. The SDL device index is now only used for initializing the SDL_Joystick and SDL_Gamepad and getting the mapping string, which should make it easier to support SDL2 and SDL3 at the same time.

@AliceLR AliceLR merged commit b150826 into master Jan 21, 2024
14 checks passed
@AliceLR AliceLR deleted the sdl3-prep-3 branch January 21, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant